<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <!-- 新 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"/>
        <!-- 可选的Bootstrap主题文件（一般不用引入） -->
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"/>
        <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
        <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
        <title th:text="#{home.welcome}">Serving Web Content</title> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body>
        <div class="container">
            <div class="row" th:replace="common/header :: header"></div>
            <div class="row text-center">
                <table class="table table-bordered table-striped table-responsive table-hover">
                    <thead class="bg-success"><td>ID</td><td>名字</td><td>地址</td><td>年龄</td><td>时间</td></thead>
                    <tbody th:remove="all-but-first">
                        <tr th:each="user,userStat:${list}">
                            <td th:text="${#numbers.formatDecimal(user.id,1,1)}">1</td>
                            <td th:text="${user.name}">张高峰</td>
                            <td th:text="${user.addr}">中国</td>
                            <td th:text="${user.age}">30</td>
                            <td th:text="${#dates.format(user.date, 'yyyy-MM-dd HH:mm:ss')}">23</td>
                        </tr>
                        <tr>
                            <td>1</td>
                            <td>张高峰</td>
                            <td>中国</td>
                            <td>23</td>
                            <td>2015-12-12 12:12:12</td>
                        </tr>
                         <tr>
                            <td>2</td>
                            <td>张高峰</td>
                            <td>中国</td>
                            <td>23</td>
                            <td>2015-12-12 12:12:12</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="row" th:replace="common/footer :: footer">
                <p class="bg-success">这是个HEADER</p>
            </div>
        </div>
    </body>
</html>